package com.easyskool.composer;

import com.easyskool.constants.TableNames;
import com.easyskool.dao.BaseDao;
import com.easyskool.hibernate.model.SchoolRequest;
import com.easyskool.hibernate.model.WClass;
import com.easyskool.utilfunction.UtilFunctions;

public class SchoolRequestComposer {
	public String createSchoolRequest(String user, String toInsert) throws Exception {
		String response = null;
		
		BaseDao baseDao = new BaseDao();
		 toInsert=UtilFunctions.insertParamRequestAdd(user, toInsert);
		baseDao.insert(TableNames.schoolRequest, toInsert);
		
		return "{\"response\":\"successs\"}";
	}

}
